package com.grandtech.insurance.common;

import java.io.Serializable;

public class R2<T> implements Serializable {

    private static final long serialVersionUID = 3765720967319047788L;

    private T data;
    private boolean success = true;
    private String msg = "";
    private String code = "";

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
